
add_executable(sourcekit-lsp
  SourceKitLSP.swift)
target_link_libraries(sourcekit-lsp PRIVATE
  BuildServerIntegration
  Diagnose
  InProcessClient
  SwiftToolsProtocols::LanguageServerProtocol
  LanguageServerProtocolExtensions
  SwiftToolsProtocols::LanguageServerProtocolTransport
  SemanticIndex
  SKOptions
  SourceKitLSP
  ToolchainRegistry
  ArgumentParser
  TSCBasic)
target_compile_options(sourcekit-lsp PRIVATE
  -parse-as-library)
target_link_libraries(sourcekit-lsp PRIVATE
  $<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>)

install(TARGETS sourcekit-lsp
  DESTINATION bin)
